﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Supermarket.Dal
{
    public static class UserDB
    {
        public static void AddName(Guid userId, string firstName, string lastName)
        {
            DataClassesUsersDataContext db = new DataClassesUsersDataContext();

            var updateUser =
                (from user in db.aspnet_Users
                 where user.UserId == userId
                 select user).First();
            updateUser.FirstName = firstName;
            updateUser.LastName = lastName;
            db.SubmitChanges();
        }
    }
}
